home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-03
/
qbasicpg.zip
/
DO-4.BAS
< prev
next >
Wrap
BASIC Source File
|
1989-08-31
|
356b
|
16 lines
' DO-4.BAS
' This program demonstrates a DO UNTIL loop. Notice
' that the condition is at the bottom of the loop.
CLS
INPUT "Please enter a number between 1 and 10: ", userNum%
PRINT
DO
COLOR userNum%
PRINT "The value of userNum% is"; userNum%
userNum% = userNum% + 1 ' increment userNum% by 1
LOOP UNTIL userNum% > 10